package br.com.daniele.controller;

import org.springframework.validation.Errors;
import org.springframework.validation.Validator;

public class FileValidator implements Validator{

	public boolean supports(Class<?> clazz) {
		return false;
	}

	public void validate(Object uploadFile, Errors errors) {
		
			UploadFile file = (UploadFile) uploadFile;
			
			/*if (file.getFile().getSize() == 0) {
				errors.rejectValue("file", "uploadForm.selectFile", "Selecione um arquivo .xml");				
			}*/
	}

}
